﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace E_mail
{
    [Serializable]
    public class AccountData
    {
        public String UserName { get; set; }
        private String _pass;
        //public String Password { get{ return _pass;} set { _pass = System.Security.Cryptography.MD5.Create(value); }  }
        public String ServerAdress { get; set; }
        public int Port { get; set; }
        public String KontaktsFile { get; set; }
        public bool AddedToMenu { get; set; }
        public AccountData()
        { }

        private bool _isEmpty()
        {
            if (UserName == "" || ServerAdress == "")
                return true;

            return false;
        }
        public bool IsEmpty { get {return _isEmpty();} }
    }
}
